package com.example.food.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("goods")
public class Goods implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long id;

    private String name;

    private String imagePath;

    private float price;

    private String type;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}
